19 步:学期结束。是时候看看我们的最终成绩和平均成绩了!

  • .将Print String main()的底部。将文本更改为"Final grades:"
  • ,将两个Function Call with Parameter工具拖到main()的底部。
  • 将第一个函数调用重命名为print_grades() ,将第二个函数调用重命名为print_average().
  • 两个函数调用的参数从my_var更改为grades 。点击跑来看看最终的平均值!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)